﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Admin/Admin.Master" AutoEventWireup="true"
    CodeBehind="OrderDetail.aspx.cs" Inherits="ProjectSem3.Admin.WebForm14" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">

</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="contentTabs" runat="server">
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="contentPage" runat="server">
    <div class="grid_9">
        <h1 class="dashboard">
            Order
            <%= Request.QueryString["ID"] == null ? "" : Request.QueryString["ID"].ToString()%>
        </h1>
    </div>
    <div class="grid_6" id="eventbox">
                <%= or.DateOrder==null?"":or.DateOrder.ToString() %></div>
            <div class="clear"></div>
    <!--Product information -->
    <div class="grid_15" id="textcontent">
        <h2>
            Personal information
        </h2>
    </div>
    <div class="portlet">
        <div class="portlet-content nopadding">
            <table width="100%" cellpadding="0" cellspacing="0" id="box-table-a" summary="Employee Pay Sheet">
                <tr>
                    <th>
                        Role
                    </th>
                    <th>
                        User name
                    </th>
                    <th>
                        Full name
                    </th>
                    <th>
                        Gender
                    </th>
                    <th>
                        Email
                    </th>
                    <th>
                        Address
                    </th>
                    <th>
                        Phone
                    </th>
                </tr>
                <tr>
                    <td>
                        <%=or.Employee.Role.Name %>
                    </td>
                    <td>
                        <%=or.Employee.Username %>
                    </td>
                    <td>
                        <%=or.Employee.FullName %>
                    </td>
                    <td>
                        <%=or.Employee.Gender==true?"Female":"Male" %>
                    </td>
                    <td>
                        <%=or.Employee.Email %>
                    </td>
                    <td>
                        <%=or.Employee.Address %>
                    </td>
                    <td>
                        <%=or.Employee.Phone %>
                    </td>
                </tr>
                <tr>
                    <td>
                        <%=or.Customer.Role.Name %>
                    </td>
                    <td>
                        <%=or.Customer.Username%>
                    </td>
                    <td>
                        <%=or.Customer.Name%>
                    </td>
                    <td>
                        <%=or.Customer.Gender == true ? "Male" : "Female"%>
                    </td>
                    <td>
                        <%=or.Customer.Email%>
                    </td>
                    <td>
                        <%=or.Customer.Address%>
                    </td>
                    <td>
                        <%=or.Customer.Phone%>
                    </td>
                </tr>
            </table>
        </div>
    </div>
    <div class="grid_15">
        <h2>
            Stockdetails</h2>
    </div>
    <div id="liststockd">
    </div>
    <asp:ListView ID="ListView1" runat="server">
        <LayoutTemplate>
            <div class="portlet">
                <div class="portlet-content nopadding">
                    <table width="100%" cellpadding="0" cellspacing="0" id="box-table-a" summary="Employee Pay Sheet">
                        <thead>
                        <th>product ID</th>
                        <th>Name</th>
                        <th>Warranty</th>
                        <th>Amount</th>
                        <th>Price</th>
                        </thead>
                        <tbody>
                            <asp:PlaceHolder runat="server" id="itemPlaceholder" />
                        </tbody>
                    </table>
                </div>
            </div>
        </LayoutTemplate>
        <ItemTemplate>
        <tr>
        <td><%# Eval("ProductID") %></td>
        <td><%# Eval("Product.Name") %></td>
        <td><%# Eval("Product.Warranty") %></td>
        <td><%# Eval("Numberof") %></td>
        <td><%# Eval("Price") %></td>
        </tr>
        </ItemTemplate>
    </asp:ListView>
    <script type="text/javascript">

        $(".dashboard").css("margin-bottom", "10px");</script>
    
    
</asp:Content>
